Public Class UnhandledErrorForm
    Inherits System.Windows.Forms.Form

#Region " Windows Form Designer generated code "

    Public Sub New()
        MyBase.New()

        'This call is required by the Windows Form Designer.
        InitializeComponent()

        'Add any initialization after the InitializeComponent() call

    End Sub

    'Form overrides dispose to clean up the component list.
    Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
        If disposing Then
            If Not (components Is Nothing) Then
                components.Dispose()
            End If
        End If
        MyBase.Dispose(disposing)
    End Sub

    'Required by the Windows Form Designer
    Private components As System.ComponentModel.IContainer

    'NOTE: The following procedure is required by the Windows Form Designer
    'It can be modified using the Windows Form Designer.  
    'Do not modify it using the code editor.
    Friend WithEvents Label1 As System.Windows.Forms.Label
    Friend WithEvents ErrorBox As System.Windows.Forms.TextBox
    Friend WithEvents CloseBtn As System.Windows.Forms.Button
    Friend WithEvents SendBtn As System.Windows.Forms.Button
    Friend WithEvents ExitButton As System.Windows.Forms.Button
    <System.Diagnostics.DebuggerStepThrough()> Private Sub InitializeComponent()
        Me.Label1 = New System.Windows.Forms.Label
        Me.ErrorBox = New System.Windows.Forms.TextBox
        Me.CloseBtn = New System.Windows.Forms.Button
        Me.SendBtn = New System.Windows.Forms.Button
        Me.ExitButton = New System.Windows.Forms.Button
        Me.SuspendLayout()
        '
        'Label1
        '
        Me.Label1.Location = New System.Drawing.Point(8, 8)
        Me.Label1.Name = "Label1"
        Me.Label1.Size = New System.Drawing.Size(536, 23)
        Me.Label1.TabIndex = 0
        Me.Label1.Text = "The unhandled error was catched. Please send error details to Axmor."
        '
        'ErrorBox
        '
        Me.ErrorBox.Location = New System.Drawing.Point(8, 32)
        Me.ErrorBox.Multiline = True
        Me.ErrorBox.Name = "ErrorBox"
        Me.ErrorBox.ReadOnly = True
        Me.ErrorBox.Size = New System.Drawing.Size(544, 160)
        Me.ErrorBox.TabIndex = 1
        Me.ErrorBox.Text = ""
        '
        'CloseBtn
        '
        Me.CloseBtn.Location = New System.Drawing.Point(477, 200)
        Me.CloseBtn.Name = "CloseBtn"
        Me.CloseBtn.TabIndex = 2
        Me.CloseBtn.Text = "Close"
        '
        'SendBtn
        '
        Me.SendBtn.Location = New System.Drawing.Point(392, 200)
        Me.SendBtn.Name = "SendBtn"
        Me.SendBtn.TabIndex = 3
        Me.SendBtn.Text = "Send"
        '
        'ExitButton
        '
        Me.ExitButton.Anchor = CType((System.Windows.Forms.AnchorStyles.Bottom Or System.Windows.Forms.AnchorStyles.Left), System.Windows.Forms.AnchorStyles)
        Me.ExitButton.Location = New System.Drawing.Point(8, 200)
        Me.ExitButton.Name = "ExitButton"
        Me.ExitButton.Size = New System.Drawing.Size(112, 23)
        Me.ExitButton.TabIndex = 4
        Me.ExitButton.Text = "Exit Application"
        '
        'UnhandledErrorForm
        '
        Me.AutoScaleBaseSize = New System.Drawing.Size(5, 13)
        Me.ClientSize = New System.Drawing.Size(560, 230)
        Me.Controls.Add(Me.ExitButton)
        Me.Controls.Add(Me.SendBtn)
        Me.Controls.Add(Me.CloseBtn)
        Me.Controls.Add(Me.ErrorBox)
        Me.Controls.Add(Me.Label1)
        Me.FormBorderStyle = System.Windows.Forms.FormBorderStyle.FixedDialog
        Me.MaximizeBox = False
        Me.MinimizeBox = False
        Me.Name = "UnhandledErrorForm"
        Me.Text = "Unhandled Error"
        Me.ResumeLayout(False)

    End Sub

#End Region

    Public Property Description() As String
        Get
            Return ErrorBox.Text
        End Get
        Set(ByVal Value As String)
            ErrorBox.Text = Value
        End Set
    End Property

    Private Sub SendBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles SendBtn.Click
        DialogResult = DialogResult.OK
        Close()
    End Sub

    Private Sub CloseBtn_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles CloseBtn.Click
        DialogResult = DialogResult.Cancel
        Close()
    End Sub

    Private Sub ExitButton_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles ExitButton.Click
        Application.Exit()
    End Sub
End Class
